package com.vcg.community.common.base;

import java.io.Serializable;

import com.vcg.community.common.utils.JsonUtil;

public abstract class BaseModel implements Serializable {

	private static final long serialVersionUID = 1L;

	// insert 插入返回主键id
	private Long pk;

	//重写toString方法,转换成json格式
	@Override
	public String toString() {
		return JsonUtil.toJSONString(this);
	}

	public Long getPk() {
		return pk;
	}

	public void setPk(Long pk) {
		this.pk = pk;
	}
}
